Adding some more judges, here and there.
[and.git] / COCI / 2009-2010 / Contest #7 - 24.04.2010 / spavanac / spavanac.cpp
blob1ab4cac6777c20077a531e8e8f58d63ae6df8b89
1 #include <iostream>
2 using namespace std;
4 int main(){
5 int h, m;
6 cin >> h >> m;
8 int mod = 24*60;
9 h = h * 60 + m;
10 h -= 45;
11 h = (h + mod) % mod;
13 cout << h / 60 << " " << h % 60 << endl;